import mongoose from 'mongoose';

import { Schema, SchemaFactory, Prop } from '@nestjs/mongoose';
export type MoviesDocument = Movie & Document;

@Schema()
export class Movie {
  @Prop()
  title: string;
  @Prop()
  cover: string;
  @Prop()
  viewDesc: string;
}

export const MovieSchema = SchemaFactory.createForClass(Movie);

